package org.csu.agrisupply.api.service;

import org.csu.agrisupply.api.common.CommonResponse;
import org.csu.agrisupply.api.entity.Form;
import org.csu.agrisupply.api.entity.Item;
import org.csu.agrisupply.api.vo.FormVo;

import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;


import java.util.List;

public interface FormService {
    //得到所有采购单
    CommonResponse<List<FormVo>> getFormList();

    //得到单个采购单
    CommonResponse<FormVo> getForm(@PathVariable("id") String formId);

    //发布采购单
    CommonResponse<Form> createForm(@PathVariable("id") String userId, Form form);

    //根据userId得到单个采购单
    CommonResponse<List<FormVo>> getFormbyUserId(@PathVariable("id") String userId);


    //得到除了已经完成的订单和自己已经供货的订单
    CommonResponse<List<FormVo>> getFormFilter(@PathVariable("id") String userId);
}
